package lib.self.util.res;

import android.content.Context;
import androidx.annotation.ColorRes;
import androidx.annotation.IntegerRes;
import androidx.core.content.ContextCompat;

/**
 * description: 资源文件加载
 * author: Steven Xiao
 * date: 2017/5/11
 */
public class ResUtil {
    protected static int getColor(Context context, @ColorRes int resId) {
        return ContextCompat.getColor(context, resId);
    }

    public static Integer getInteger(Context context, @IntegerRes int resId) {
        return context.getResources().getInteger(resId);
    }
}
